/**
 * org.vz.product.data.collect.config
 * @since : jdk 1.8
 */
package org.vz.product.collect.maintain.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * @author      chenhuaijin
 * @CreateTime  2017年7月26日 下午5:10:54
 * @version     1.0.0
 * @description 指定表态页面访问资源
 */
@Configuration
public class WebAppConfig extends WebMvcConfigurerAdapter{
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
       // registry.addResourceHandler("/user/**").addResourceLocations("classpath:/static/");
    	 registry.addResourceHandler("/**").addResourceLocations("classpath:/static/");//将所有根目录下的内容映射到static对应的目录下
        super.addResourceHandlers(registry);
    } 
}
